package cn.yuanqiao.web.controller.archive.report;/**
 * @author 赵常飞
 * @date 2023/11/28 15:14
 */

import cn.yuanqiao.archive.report.service.getStaticModelDataService;
import cn.yuanqiao.common.web.controller.BaseController;
import cn.yuanqiao.common.core.domain.AjaxResult;
import com.alibaba.fastjson2.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 *@Author: 赵常飞
 *@Date: 2023/11/28 15:14
 *@Description:
 *@Note:
 */
@RestController
@RequestMapping("/archive/getStaticModelData")
public class getStaticModelData extends BaseController {
    @Autowired
    private getStaticModelDataService dataService;
    @PostMapping("/getbkbdata")
    public AjaxResult getfmdata(@RequestBody JSONObject jsonObject) {
        String json = dataService.getbkbdata(jsonObject);
        return success(json);
    }
    //全引目录
    @PostMapping("/getqymldata")
    public AjaxResult getqymldata(@RequestBody com.alibaba.fastjson.JSONObject jsonObject) {
        String json = dataService.getqymldata(jsonObject);
        return success(json);
    }
    //封面打印
    @PostMapping("/getBoxFmData")
    public AjaxResult getBoxFmData(@RequestBody com.alibaba.fastjson.JSONObject jsonObject) {
        String json = dataService.getBoxFmData(jsonObject);
        return success(json);
    }
    //盒脊打印
    @PostMapping("/getBoxHjData")
    public AjaxResult getBoxHjData(@RequestBody com.alibaba.fastjson.JSONObject jsonObject) {
        String json = dataService.getBoxHjData(jsonObject);
        return success(json);
    }
    //盒内目录打印
    @PostMapping("/getBoxMlData")
    public AjaxResult getBoxMlData(@RequestBody com.alibaba.fastjson.JSONObject jsonObject) {
        String json = dataService.getBoxMlData(jsonObject);
        return success(json);
    }
    //盒内目录打印
    @PostMapping("/getBoxMlFmData")
    public AjaxResult getBoxMlFmData(@RequestBody com.alibaba.fastjson.JSONObject jsonObject) {
        String json = dataService.getBoxMlFmData(jsonObject);
        return success(json);
    }
    //盒内目录打印
    @PostMapping("/getBoxBqSmData")
    public AjaxResult getBoxBqSmData(@RequestBody com.alibaba.fastjson.JSONObject jsonObject) {
        String json = dataService.getBoxBqSmData(jsonObject);
        return success(json);
    }

    //全宗卷打印
    @PostMapping("/getQzjData/{treeId}")
    public AjaxResult getQzjData(@PathVariable("treeId") Long treeId) {
        String json = dataService.getQzjData(treeId);
        return success(json);
    }
}
